package com.hehua.dataSource;

public class ApiDataProcessor extends DataProcessorTemplate{

    private final DataAdapter adapter;

    public ApiDataProcessor(DataAdapter adapter) {
        this.adapter = adapter;
    }

    @Override
    protected Object fetchData() {
        System.out.println("接口获取数据");
        return new Object();
    }

    @Override
    protected Object transformData(Object data) {
        return adapter.convertToStandard(data);
    }

    @Override
    protected void storeData(Object data) {

    }
}
